package cn.webrx;

import java.util.Arrays;

public class Str9 {
    public static void main(String[] args) {
        //split（） 方法是可以使用正则表达式，功能是将字符串按一定分隔符转换为String[] 数组
        String[] langs = "java,php,python,mysql,html,vue,c".split(",");
        System.out.println(langs);

        System.out.println(Arrays.toString(langs));

        char[] cs = "java".toCharArray(); //{'j','a','v','a'}
        String[] sss = "java".split("");//{"j","a","v","a"}
        System.out.println(Arrays.toString(sss));
    }
}
